//
//  UIView+XMBorder.h
//  XMKit
//
//  Created by chenming on 2017/12/21.
//  Copyright © 2017年 ChenXiaoMing. All rights reserved.
//

#import <UIKit/UIKit.h>

/** 定义横线位置 */
typedef NS_ENUM(NSUInteger, XMViewBorderStyle) {
    XMViewBorderStyleAll  = 0,
    XMViewBorderStyleTop = 1 << 0,
    XMViewBorderStyleBottom = 1 << 1,
    XMViewBorderStyleLeft = 1 << 2,
    XMViewBorderStyleRight = 1 << 3,
};

@interface UIView (XMBorder)

/**
 设置横线样式

 @param color 横线颜色
 @param borderWidth 横线宽度
 @param borderStyle 横线位置
 @return UIView
 */
- (UIView *)xm_borderForColor:(UIColor *)color borderWidth:(CGFloat)borderWidth borderStyle:(XMViewBorderStyle)borderStyle;

- (void)xm_logView:(UIView *)view;

@end
